<?php
declare (strict_types = 1);

namespace app\middleware;

class Check
{
    /**
     * 处理请求
     *
     * @param \think\Request $request
     * @param \Closure       $next
     * @return Response
     */
    public function handle($request, \Closure $next)
    {
//        if ($request->ip() == '127.0.0.1') {
//            return json([
//                'error'=>'asd'
//            ]);
//        }

        return $next($request);
    }
}
